﻿using Hospital.Model.type;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Permissions;
using System.Text;
using System.Threading.Tasks;

namespace Hospital.Model.entity
{
    //病房
    public class Ward : BaseId
    {
        [SugarColumn(Length = 10)]
        public string Number { get; set; } //编号：701.602
        public int MaxCount { get; set; } = 3; //容量
        public int NowCount { get; set; } = 0; //当前入住数量
        [SugarColumn(Length = 2)]
        public bool Status { get; set; } //是否可以使用1 true, 0 flase
        public bool IsDeleted { get; set; } //软删除
        [SugarColumn(IsNullable = true)]
        public int DepartmentId { get; set; } //房间是什么科的
        public int PriceDay { get; set; } = 50; //单天价格
        [SugarColumn(IsIgnore = true)]
        public Department Department { get; set; }


    }
}
